package com.alex.seo.dao.group;

import java.util.List;
import java.util.Set;

import com.alex.seo.dao.AbstractDao;
import com.alex.seo.domain.group.SiteGroup;
import com.alex.seo.domain.site.Site;

public interface SiteGroupDao extends AbstractDao<SiteGroup, Integer> {
	public void addSitesToGroup(List<Site> sites, SiteGroup siteGroup);
	public void addSiteToGroup(Site site, SiteGroup siteGroup);
	
	public List<Integer> getSiteIdsOfGroup(int groupId);
	public List<Integer> getSitesIdsOfGroup(String groupName);
	
	public List<Site> getSitesOfGroups(Set<Integer> siteGroupIds);
	
	public SiteGroup getByName(String groupName);
	
}
